home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / arvis1 / mainfrm.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1999-10-09  |  60.7 KB  |  1,844 lines

  1. VERSION 5.00
  2. Object = "{27395F88-0C0C-101B-A3C9-08002B2F49FB}#1.1#0"; "PICCLP32.OCX"
  3. Begin VB.Form MainSmall 
  4.    BorderStyle     =   0  'None
  5.    Caption         =   "QuadBall"
  6.    ClientHeight    =   9000
  7.    ClientLeft      =   0
  8.    ClientTop       =   0
  9.    ClientWidth     =   12000
  10.    ClipControls    =   0   'False
  11.    ControlBox      =   0   'False
  12.    BeginProperty Font 
  13.       Name            =   "Times New Roman"
  14.       Size            =   8.25
  15.       Charset         =   0
  16.       Weight          =   400
  17.       Underline       =   0   'False
  18.       Italic          =   0   'False
  19.       Strikethrough   =   0   'False
  20.    EndProperty
  21.    Icon            =   "MainFrm.frx":0000
  22.    LinkTopic       =   "Form1"
  23.    MaxButton       =   0   'False
  24.    MinButton       =   0   'False
  25.    Moveable        =   0   'False
  26.    ScaleHeight     =   9000
  27.    ScaleWidth      =   12000
  28.    StartUpPosition =   2  'CenterScreen
  29.    WindowState     =   2  'Maximized
  30.    Begin VB.PictureBox StatBox 
  31.       Appearance      =   0  'Flat
  32.       AutoSize        =   -1  'True
  33.       BackColor       =   &H00C000C0&
  34.       BorderStyle     =   0  'None
  35.       BeginProperty Font 
  36.          Name            =   "MS Sans Serif"
  37.          Size            =   8.25
  38.          Charset         =   0
  39.          Weight          =   400
  40.          Underline       =   0   'False
  41.          Italic          =   0   'False
  42.          Strikethrough   =   0   'False
  43.       EndProperty
  44.       ForeColor       =   &H80000008&
  45.       Height          =   1050
  46.       Left            =   0
  47.       ScaleHeight     =   1050
  48.       ScaleWidth      =   1185
  49.       TabIndex        =   34
  50.       Top             =   0
  51.       Visible         =   0   'False
  52.       Width           =   1185
  53.       Begin VB.Label OK 
  54.          AutoSize        =   -1  'True
  55.          BackStyle       =   0  'Transparent
  56.          Caption         =   "Continue"
  57.          BeginProperty Font 
  58.             Name            =   "Times New Roman"
  59.             Size            =   36
  60.             Charset         =   0
  61.             Weight          =   700
  62.             Underline       =   0   'False
  63.             Italic          =   0   'False
  64.             Strikethrough   =   0   'False
  65.          EndProperty
  66.          ForeColor       =   &H00008000&
  67.          Height          =   825
  68.          Left            =   8460
  69.          TabIndex        =   48
  70.          Top             =   7650
  71.          Width           =   2805
  72.       End
  73.       Begin VB.Label Label9 
  74.          AutoSize        =   -1  'True
  75.          BackStyle       =   0  'Transparent
  76.          Caption         =   "Game Statistics"
  77.          BeginProperty Font 
  78.             Name            =   "Times New Roman"
  79.             Size            =   48
  80.             Charset         =   0
  81.             Weight          =   400
  82.             Underline       =   -1  'True
  83.             Italic          =   0   'False
  84.             Strikethrough   =   0   'False
  85.          EndProperty
  86.          ForeColor       =   &H00FFFF00&
  87.          Height          =   1095
  88.          Left            =   900
  89.          TabIndex        =   45
  90.          Top             =   270
  91.          Width           =   5985
  92.       End
  93.       Begin VB.Label SavedPlanets 
  94.          AutoSize        =   -1  'True
  95.          BackStyle       =   0  'Transparent
  96.          Caption         =   "Neptune"
  97.          BeginProperty Font 
  98.             Name            =   "Times New Roman"
  99.             Size            =   36
  100.             Charset         =   0
  101.             Weight          =   700
  102.             Underline       =   0   'False
  103.             Italic          =   0   'False
  104.             Strikethrough   =   0   'False
  105.          EndProperty
  106.          ForeColor       =   &H0000FFFF&
  107.          Height          =   825
  108.          Index           =   3
  109.          Left            =   4770
  110.          TabIndex        =   44
  111.          Top             =   4455
  112.          Width           =   2580
  113.       End
  114.       Begin VB.Label SavedPlanets 
  115.          AutoSize        =   -1  'True
  116.          BackStyle       =   0  'Transparent
  117.          Caption         =   "Mars"
  118.          BeginProperty Font 
  119.             Name            =   "Times New Roman"
  120.             Size            =   36
  121.             Charset         =   0
  122.             Weight          =   700
  123.             Underline       =   0   'False
  124.             Italic          =   0   'False
  125.             Strikethrough   =   0   'False
  126.          EndProperty
  127.          ForeColor       =   &H0000FFFF&
  128.          Height          =   825
  129.          Index           =   2
  130.          Left            =   4770
  131.          TabIndex        =   43
  132.          Top             =   3735
  133.          Width           =   1635
  134.       End
  135.       Begin VB.Label TotalBounces 
  136.          AutoSize        =   -1  'True
  137.          BackStyle       =   0  'Transparent
  138.          Caption         =   "TotalBounces"
  139.          BeginProperty Font 
  140.             Name            =   "Times New Roman"
  141.             Size            =   36
  142.             Charset         =   0
  143.             Weight          =   700
  144.             Underline       =   0   'False
  145.             Italic          =   0   'False
  146.             Strikethrough   =   0   'False
  147.          EndProperty
  148.          ForeColor       =   &H0000FFFF&
  149.          Height          =   825
  150.          Left            =   7200
  151.          TabIndex        =   42
  152.          Top             =   6615
  153.          Width           =   4185
  154.       End
  155.       Begin VB.Label TopSpeed 
  156.          AutoSize        =   -1  'True
  157.          BackStyle       =   0  'Transparent
  158.          Caption         =   "TopSpeed"
  159.          BeginProperty Font 
  160.             Name            =   "Times New Roman"
  161.             Size            =   36
  162.             Charset         =   0
  163.             Weight          =   700
  164.             Underline       =   0   'False
  165.             Italic          =   0   'False
  166.             Strikethrough   =   0   'False
  167.          EndProperty
  168.          ForeColor       =   &H0000FFFF&
  169.          Height          =   825
  170.          Left            =   4005
  171.          TabIndex        =   41
  172.          Top             =   5490
  173.          Width           =   3090
  174.       End
  175.       Begin VB.Label SavedPlanets 
  176.          AutoSize        =   -1  'True
  177.          BackStyle       =   0  'Transparent
  178.          Caption         =   "Earth"
  179.          BeginProperty Font 
  180.             Name            =   "Times New Roman"
  181.             Size            =   36
  182.             Charset         =   0
  183.             Weight          =   700
  184.             Underline       =   0   'False
  185.             Italic          =   0   'False
  186.             Strikethrough   =   0   'False
  187.          EndProperty
  188.          ForeColor       =   &H0000FFFF&
  189.          Height          =   825
  190.          Index           =   1
  191.          Left            =   4770
  192.          TabIndex        =   40
  193.          Top             =   2970
  194.          Width           =   1785
  195.       End
  196.       Begin VB.Label TotalScore 
  197.          AutoSize        =   -1  'True
  198.          BackStyle       =   0  'Transparent
  199.          Caption         =   "SCORE"
  200.          BeginProperty Font 
  201.             Name            =   "Times New Roman"
  202.             Size            =   36
  203.             Charset         =   0
  204.             Weight          =   700
  205.             Underline       =   0   'False
  206.             Italic          =   0   'False
  207.             Strikethrough   =   0   'False
  208.          EndProperty
  209.          ForeColor       =   &H0000FFFF&
  210.          Height          =   825
  211.          Left            =   4005
  212.          TabIndex        =   39
  213.          Top             =   1755
  214.          Width           =   2490
  215.       End
  216.       Begin VB.Label Label8 
  217.          BackStyle       =   0  'Transparent
  218.          Caption         =   "Total Number Of Bounces"
  219.          BeginProperty Font 
  220.             Name            =   "Times New Roman"
  221.             Size            =   27.75
  222.             Charset         =   0
  223.             Weight          =   400
  224.             Underline       =   0   'False
  225.             Italic          =   0   'False
  226.             Strikethrough   =   0   'False
  227.          EndProperty
  228.          ForeColor       =   &H0000FF00&
  229.          Height          =   645
  230.          Left            =   900
  231.          TabIndex        =   38
  232.          Top             =   6750
  233.          Width           =   6180
  234.       End
  235.       Begin VB.Label Label7 
  236.          BackStyle       =   0  'Transparent
  237.          Caption         =   "Top Speed"
  238.          BeginProperty Font 
  239.             Name            =   "Times New Roman"
  240.             Size            =   27.75
  241.             Charset         =   0
  242.             Weight          =   400
  243.             Underline       =   0   'False
  244.             Italic          =   0   'False
  245.             Strikethrough   =   0   'False
  246.          EndProperty
  247.          ForeColor       =   &H0000FF00&
  248.          Height          =   555
  249.          Left            =   900
  250.          TabIndex        =   37
  251.          Top             =   5670
  252.          Width           =   3885
  253.       End
  254.       Begin VB.Label Label6 
  255.          BackStyle       =   0  'Transparent
  256.          Caption         =   "Planet Satatus"
  257.          BeginProperty Font 
  258.             Name            =   "Times New Roman"
  259.             Size            =   27.75
  260.             Charset         =   0
  261.             Weight          =   400
  262.             Underline       =   0   'False
  263.             Italic          =   0   'False
  264.             Strikethrough   =   0   'False
  265.          EndProperty
  266.          ForeColor       =   &H0000FF00&
  267.          Height          =   555
  268.          Left            =   900
  269.          TabIndex        =   36
  270.          Top             =   3015
  271.          Width           =   4110
  272.       End
  273.       Begin VB.Label Label5 
  274.          BackStyle       =   0  'Transparent
  275.          Caption         =   "Total Score"
  276.          BeginProperty Font 
  277.             Name            =   "Times New Roman"
  278.             Size            =   27.75
  279.             Charset         =   0
  280.             Weight          =   400
  281.             Underline       =   0   'False
  282.             Italic          =   0   'False
  283.             Strikethrough   =   0   'False
  284.          EndProperty
  285.          ForeColor       =   &H0000FF00&
  286.          Height          =   510
  287.          Left            =   900
  288.          TabIndex        =   35
  289.          Top             =   1890
  290.          Width           =   3660
  291.       End
  292.    End
  293.    Begin VB.PictureBox StoryScreen 
  294.       AutoSize        =   -1  'True
  295.       BackColor       =   &H00FF8080&
  296.       BorderStyle     =   0  'None
  297.       BeginProperty Font 
  298.          Name            =   "MS Sans Serif"
  299.          Size            =   8.25
  300.          Charset         =   0
  301.          Weight          =   400
  302.          Underline       =   0   'False
  303.          Italic          =   0   'False
  304.          Strikethrough   =   0   'False
  305.       EndProperty
  306.       Height          =   2000
  307.       Left            =   0
  308.       ScaleHeight     =   1995
  309.       ScaleWidth      =   1995
  310.       TabIndex        =   10
  311.       Top             =   0
  312.       Visible         =   0   'False
  313.       Width           =   2000
  314.       Begin VB.Label Quit2 
  315.          Alignment       =   2  'Center
  316.          AutoSize        =   -1  'True
  317.          BackStyle       =   0  'Transparent
  318.          Caption         =   "Quit Game"
  319.          BeginProperty Font 
  320.             Name            =   "Times New Roman"
  321.             Size            =   27.75
  322.             Charset         =   0
  323.             Weight          =   400
  324.             Underline       =   0   'False
  325.             Italic          =   0   'False
  326.             Strikethrough   =   0   'False
  327.          EndProperty
  328.          ForeColor       =   &H00008000&
  329.          Height          =   585
  330.          Left            =   6750
  331.          TabIndex        =   13
  332.          Top             =   8145
  333.          Width           =   2955
  334.       End
  335.       Begin VB.Label Start2 
  336.          Alignment       =   2  'Center
  337.          AutoSize        =   -1  'True
  338.          BackStyle       =   0  'Transparent
  339.          Caption         =   "Start Game"
  340.          BeginProperty Font 
  341.             Name            =   "Times New Roman"
  342.             Size            =   27.75
  343.             Charset         =   0
  344.             Weight          =   400
  345.             Underline       =   0   'False
  346.             Italic          =   0   'False
  347.             Strikethrough   =   0   'False
  348.          EndProperty
  349.          ForeColor       =   &H00008000&
  350.          Height          =   585
  351.          Left            =   1800
  352.          TabIndex        =   12
  353.          Top             =   8145
  354.          Width           =   3225
  355.       End
  356.       Begin VB.Label StoryLabel 
  357.          Alignment       =   2  'Center
  358.          Appearance      =   0  'Flat
  359.          AutoSize        =   -1  'True
  360.          BackColor       =   &H80000005&
  361.          BackStyle       =   0  'Transparent
  362.          BeginProperty Font 
  363.             Name            =   "Times New Roman"
  364.             Size            =   20.25
  365.             Charset         =   0
  366.             Weight          =   400
  367.             Underline       =   0   'False
  368.             Italic          =   0   'False
  369.             Strikethrough   =   0   'False
  370.          EndProperty
  371.          ForeColor       =   &H0000FFFF&
  372.          Height          =   2460
  373.          Left            =   0
  374.          TabIndex        =   11
  375.          Top             =   0
  376.          Width           =   12075
  377.          WordWrap        =   -1  'True
  378.       End
  379.    End
  380.    Begin VB.PictureBox TitleScreen 
  381.       Appearance      =   0  'Flat
  382.       AutoSize        =   -1  'True
  383.       BackColor       =   &H0080C0FF&
  384.       BorderStyle     =   0  'None
  385.       BeginProperty Font 
  386.          Name            =   "MS Sans Serif"
  387.          Size            =   8.25
  388.          Charset         =   0
  389.          Weight          =   400
  390.          Underline       =   0   'False
  391.          Italic          =   0   'False
  392.          Strikethrough   =   0   'False
  393.       EndProperty
  394.       ForeColor       =   &H80000008&
  395.       Height          =   8940
  396.       Left            =   0
  397.       ScaleHeight     =   8940
  398.       ScaleWidth      =   6960
  399.       TabIndex        =   6
  400.       Top             =   0
  401.       Width           =   6960
  402.       Begin QuadBall_Story.ArviScroll Scroll 
  403.          Height          =   330
  404.          Left            =   225
  405.          TabIndex        =   18
  406.          Top             =   8550
  407.          Width           =   11490
  408.          _ExtentX        =   20267
  409.          _ExtentY        =   582
  410.          BackColor       =   16777215
  411.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  412.             Name            =   "Terminal"
  413.             Size            =   13.5
  414.             Charset         =   255
  415.             Weight          =   700
  416.             Underline       =   0   'False
  417.             Italic          =   0   'False
  418.             Strikethrough   =   0   'False
  419.          EndProperty
  420.       End
  421.       Begin VB.Label TrainingMode 
  422.          Alignment       =   2  'Center
  423.          AutoSize        =   -1  'True
  424.          BackStyle       =   0  'Transparent
  425.          Caption         =   "Play In Training Mode"
  426.          BeginProperty Font 
  427.             Name            =   "Times New Roman"
  428.             Size            =   27.75
  429.             Charset         =   0
  430.             Weight          =   400
  431.             Underline       =   0   'False
  432.             Italic          =   0   'False
  433.             Strikethrough   =   0   'False
  434.          EndProperty
  435.          ForeColor       =   &H00008000&
  436.          Height          =   630
  437.          Left            =   5940
  438.          TabIndex        =   51
  439.          Top             =   6165
  440.          Width           =   4965
  441.       End
  442.       Begin VB.Label Label3 
  443.          Alignment       =   2  'Center
  444.          BackStyle       =   0  'Transparent
  445.          Caption         =   "Quad-Ball Story Mode."
  446.          BeginProperty Font 
  447.             Name            =   "Times New Roman"
  448.             Size            =   26.25
  449.             Charset         =   0
  450.             Weight          =   700
  451.             Underline       =   0   'False
  452.             Italic          =   0   'False
  453.             Strikethrough   =   0   'False
  454.          EndProperty
  455.          ForeColor       =   &H0000FF00&
  456.          Height          =   555
  457.          Left            =   225
  458.          TabIndex        =   50
  459.          Top             =   7830
  460.          Width           =   11490
  461.       End
  462.       Begin VB.Label Story 
  463.          Alignment       =   2  'Center
  464.          AutoSize        =   -1  'True
  465.          BackStyle       =   0  'Transparent
  466.          Caption         =   "Show Story"
  467.          BeginProperty Font 
  468.             Name            =   "Times New Roman"
  469.             Size            =   27.75
  470.             Charset         =   0
  471.             Weight          =   400
  472.             Underline       =   0   'False
  473.             Italic          =   0   'False
  474.             Strikethrough   =   0   'False
  475.          EndProperty
  476.          ForeColor       =   &H00008000&
  477.          Height          =   585
  478.          Left            =   6885
  479.          TabIndex        =   9
  480.          Top             =   5580
  481.          Width           =   3075
  482.       End
  483.       Begin VB.Label Quit 
  484.          Alignment       =   2  'Center
  485.          AutoSize        =   -1  'True
  486.          BackStyle       =   0  'Transparent
  487.          Caption         =   "Quit Game"
  488.          BeginProperty Font 
  489.             Name            =   "Times New Roman"
  490.             Size            =   27.75
  491.             Charset         =   0
  492.             Weight          =   400
  493.             Underline       =   0   'False
  494.             Italic          =   0   'False
  495.             Strikethrough   =   0   'False
  496.          EndProperty
  497.          ForeColor       =   &H00008000&
  498.          Height          =   585
  499.          Left            =   6885
  500.          TabIndex        =   8
  501.          Top             =   6705
  502.          Width           =   2955
  503.       End
  504.       Begin VB.Label Start 
  505.          Alignment       =   2  'Center
  506.          AutoSize        =   -1  'True
  507.          BackStyle       =   0  'Transparent
  508.          Caption         =   "Start Game"
  509.          BeginProperty Font 
  510.             Name            =   "Times New Roman"
  511.             Size            =   27.75
  512.             Charset         =   0
  513.             Weight          =   400
  514.             Underline       =   0   'False
  515.             Italic          =   0   'False
  516.             Strikethrough   =   0   'False
  517.          EndProperty
  518.          ForeColor       =   &H00008000&
  519.          Height          =   585
  520.          Left            =   6840
  521.          TabIndex        =   7
  522.          Top             =   5040
  523.          Width           =   3225
  524.       End
  525.    End
  526.    Begin VB.PictureBox Info 
  527.       Appearance      =   0  'Flat
  528.       BackColor       =   &H0000C0C0&
  529.       ForeColor       =   &H80000008&
  530.       Height          =   9000
  531.       Left            =   10320
  532.       ScaleHeight     =   8970
  533.       ScaleWidth      =   1650
  534.       TabIndex        =   20
  535.       Top             =   0
  536.       Width           =   1680
  537.       Begin VB.Timer TimeKeeper 
  538.          Enabled         =   0   'False
  539.          Interval        =   900
  540.          Left            =   1260
  541.          Top             =   3690
  542.       End
  543.       Begin VB.Label Reset 
  544.          Alignment       =   2  'Center
  545.          AutoSize        =   -1  'True
  546.          BackStyle       =   0  'Transparent
  547.          Caption         =   "Reset"
  548.          BeginProperty Font 
  549.             Name            =   "Times New Roman"
  550.             Size            =   20.25
  551.             Charset         =   0
  552.             Weight          =   700
  553.             Underline       =   0   'False
  554.             Italic          =   0   'False
  555.             Strikethrough   =   0   'False
  556.          EndProperty
  557.          ForeColor       =   &H00008000&
  558.          Height          =   435
  559.          Left            =   360
  560.          TabIndex        =   49
  561.          Tag             =   "no"
  562.          Top             =   5850
  563.          Width           =   1005
  564.       End
  565.       Begin VB.Image InfoArea 
  566.          Height          =   9015
  567.          Left            =   -45
  568.          Stretch         =   -1  'True
  569.          Top             =   0
  570.          Width           =   1770
  571.       End
  572.       Begin VB.Label HighName 
  573.          Alignment       =   2  'Center
  574.          BackStyle       =   0  'Transparent
  575.          BeginProperty Font 
  576.             Name            =   "Times New Roman"
  577.             Size            =   14.25
  578.             Charset         =   0
  579.             Weight          =   700
  580.             Underline       =   0   'False
  581.             Italic          =   0   'False
  582.             Strikethrough   =   0   'False
  583.          EndProperty
  584.          ForeColor       =   &H000080FF&
  585.          Height          =   600
  586.          Left            =   90
  587.          TabIndex        =   47
  588.          Top             =   4950
  589.          Width           =   1455
  590.       End
  591.       Begin VB.Label HighestScore 
  592.          Alignment       =   2  'Center
  593.          BackStyle       =   0  'Transparent
  594.          Caption         =   "000000"
  595.          BeginProperty Font 
  596.             Name            =   "Times New Roman"
  597.             Size            =   20.25
  598.             Charset         =   0
  599.             Weight          =   700
  600.             Underline       =   0   'False
  601.             Italic          =   0   'False
  602.             Strikethrough   =   0   'False
  603.          EndProperty
  604.          ForeColor       =   &H0000FF00&
  605.          Height          =   465
  606.          Left            =   90
  607.          TabIndex        =   46
  608.          Top             =   4545
  609.          Width           =   1455
  610.       End
  611.       Begin VB.Label Label2 
  612.          Alignment       =   2  'Center
  613.          Appearance      =   0  'Flat
  614.          BackColor       =   &H80000005&
  615.          BackStyle       =   0  'Transparent
  616.          Caption         =   "High Score"
  617.          BeginProperty Font 
  618.             Name            =   "Times New Roman"
  619.             Size            =   14.25
  620.             Charset         =   0
  621.             Weight          =   400
  622.             Underline       =   0   'False
  623.             Italic          =   0   'False
  624.             Strikethrough   =   0   'False
  625.          EndProperty
  626.          ForeColor       =   &H0000FFFF&
  627.          Height          =   375
  628.          Left            =   90
  629.          TabIndex        =   33
  630.          Top             =   4275
  631.          Width           =   1455
  632.          WordWrap        =   -1  'True
  633.       End
  634.       Begin VB.Shape Shape4 
  635.          BorderColor     =   &H00FFFF00&
  636.          Height          =   1320
  637.          Left            =   90
  638.          Top             =   4275
  639.          Width           =   1455
  640.       End
  641.       Begin VB.Label LifeTxt 
  642.          Alignment       =   2  'Center
  643.          BackStyle       =   0  'Transparent
  644.          BeginProperty Font 
  645.             Name            =   "Times New Roman"
  646.             Size            =   13.5
  647.             Charset         =   0
  648.             Weight          =   700
  649.             Underline       =   0   'False
  650.             Italic          =   0   'False
  651.             Strikethrough   =   0   'False
  652.          EndProperty
  653.          ForeColor       =   &H0000FFFF&
  654.          Height          =   285
  655.          Index           =   1
  656.          Left            =   1080
  657.          TabIndex        =   23
  658.          Top             =   2655
  659.          Width           =   375
  660.       End
  661.       Begin VB.Label LifeTxt 
  662.          Alignment       =   2  'Center
  663.          BackStyle       =   0  'Transparent
  664.          BeginProperty Font 
  665.             Name            =   "Times New Roman"
  666.             Size            =   13.5
  667.             Charset         =   0
  668.             Weight          =   700
  669.             Underline       =   0   'False
  670.             Italic          =   0   'False
  671.             Strikethrough   =   0   'False
  672.          EndProperty
  673.          ForeColor       =   &H0000FF00&
  674.          Height          =   285
  675.          Index           =   2
  676.          Left            =   630
  677.          TabIndex        =   22
  678.          Top             =   2655
  679.          Width           =   375
  680.       End
  681.       Begin VB.Label LifeTxt 
  682.          Alignment       =   2  'Center
  683.          BackStyle       =   0  'Transparent
  684.          BeginProperty Font 
  685.             Name            =   "Times New Roman"
  686.             Size            =   13.5
  687.             Charset         =   0
  688.             Weight          =   700
  689.             Underline       =   0   'False
  690.             Italic          =   0   'False
  691.             Strikethrough   =   0   'False
  692.          EndProperty
  693.          ForeColor       =   &H000000FF&
  694.          Height          =   285
  695.          Index           =   3
  696.          Left            =   180
  697.          TabIndex        =   21
  698.          Top             =   2655
  699.          Width           =   375
  700.       End
  701.       Begin VB.Shape ScoreBox 
  702.          Height          =   825
  703.          Left            =   90
  704.          Top             =   -5000
  705.          Width           =   1410
  706.       End
  707.       Begin VB.Label ScoreLable 
  708.          Alignment       =   2  'Center
  709.          Appearance      =   0  'Flat
  710.          BackColor       =   &H80000005&
  711.          BackStyle       =   0  'Transparent
  712.          Caption         =   "Score"
  713.          BeginProperty Font 
  714.             Name            =   "Times New Roman"
  715.             Size            =   15.75
  716.             Charset         =   0
  717.             Weight          =   400
  718.             Underline       =   0   'False
  719.             Italic          =   0   'False
  720.             Strikethrough   =   0   'False
  721.          EndProperty
  722.          ForeColor       =   &H0000FFFF&
  723.          Height          =   420
  724.          Left            =   90
  725.          TabIndex        =   32
  726.          Top             =   90
  727.          Width           =   1410
  728.       End
  729.       Begin VB.Label Score 
  730.          Alignment       =   2  'Center
  731.          BackStyle       =   0  'Transparent
  732.          Caption         =   "0"
  733.          BeginProperty Font 
  734.             Name            =   "Times New Roman"
  735.             Size            =   20.25
  736.             Charset         =   0
  737.             Weight          =   700
  738.             Underline       =   0   'False
  739.             Italic          =   0   'False
  740.             Strikethrough   =   0   'False
  741.          EndProperty
  742.          ForeColor       =   &H000000FF&
  743.          Height          =   465
  744.          Left            =   90
  745.          TabIndex        =   31
  746.          Top             =   450
  747.          Width           =   1410
  748.       End
  749.       Begin VB.Shape TimeBox 
  750.          BackColor       =   &H0000FF00&
  751.          BorderColor     =   &H0000FF00&
  752.          Height          =   1050
  753.          Left            =   90
  754.          Top             =   990
  755.          Width           =   1410
  756.       End
  757.       Begin VB.Label TimeLabel 
  758.          Alignment       =   2  'Center
  759.          Appearance      =   0  'Flat
  760.          BackColor       =   &H80000005&
  761.          BackStyle       =   0  'Transparent
  762.          Caption         =   "Time"
  763.          BeginProperty Font 
  764.             Name            =   "Times New Roman"
  765.             Size            =   15.75
  766.             Charset         =   0
  767.             Weight          =   400
  768.             Underline       =   0   'False
  769.             Italic          =   0   'False
  770.             Strikethrough   =   0   'False
  771.          EndProperty
  772.          ForeColor       =   &H0000FFFF&
  773.          Height          =   420
  774.          Left            =   90
  775.          TabIndex        =   30
  776.          Top             =   990
  777.          Width           =   1410
  778.       End
  779.       Begin VB.Label TimeSoFar 
  780.          Alignment       =   2  'Center
  781.          BackStyle       =   0  'Transparent
  782.          Caption         =   "00:00:00"
  783.          BeginProperty Font 
  784.             Name            =   "Times New Roman"
  785.             Size            =   12
  786.             Charset         =   0
  787.             Weight          =   700
  788.             Underline       =   0   'False
  789.             Italic          =   0   'False
  790.             Strikethrough   =   0   'False
  791.          EndProperty
  792.          ForeColor       =   &H000000FF&
  793.          Height          =   420
  794.          Left            =   90
  795.          TabIndex        =   29
  796.          Top             =   1395
  797.          Width           =   1410
  798.       End
  799.       Begin VB.Label AimTime 
  800.          Alignment       =   2  'Center
  801.          BackStyle       =   0  'Transparent
  802.          Caption         =   "00:00:00"
  803.          BeginProperty Font 
  804.             Name            =   "Times New Roman"
  805.             Size            =   12
  806.             Charset         =   0
  807.             Weight          =   700
  808.             Underline       =   0   'False
  809.             Italic          =   0   'False
  810.             Strikethrough   =   0   'False
  811.          EndProperty
  812.          ForeColor       =   &H000000FF&
  813.          Height          =   420
  814.          Left            =   90
  815.          TabIndex        =   28
  816.          Top             =   1710
  817.          Width           =   1410
  818.       End
  819.       Begin VB.Image Life 
  820.          Height          =   375
  821.          Index           =   1
  822.          Left            =   1080
  823.          Top             =   2610
  824.          Width           =   375
  825.       End
  826.       Begin VB.Image Life 
  827.          Height          =   375
  828.          Index           =   3
  829.          Left            =   180
  830.          Top             =   2610
  831.          Width           =   375
  832.       End
  833.       Begin VB.Shape PlanetsBox 
  834.          BorderColor     =   &H00FF8080&
  835.          Height          =   1050
  836.          Left            =   90
  837.          Top             =   2115
  838.          Width           =   1410
  839.       End
  840.       Begin VB.Label PlanetsLabel 
  841.          Alignment       =   2  'Center
  842.          Appearance      =   0  'Flat
  843.          BackColor       =   &H80000005&
  844.          BackStyle       =   0  'Transparent
  845.          Caption         =   "Planets"
  846.          BeginProperty Font 
  847.             Name            =   "Times New Roman"
  848.             Size            =   15.75
  849.             Charset         =   0
  850.             Weight          =   400
  851.             Underline       =   0   'False
  852.             Italic          =   0   'False
  853.             Strikethrough   =   0   'False
  854.          EndProperty
  855.          ForeColor       =   &H0000FFFF&
  856.          Height          =   420
  857.          Left            =   90
  858.          TabIndex        =   27
  859.          Top             =   2115
  860.          Width           =   1410
  861.       End
  862.       Begin VB.Shape Shape1 
  863.          BorderColor     =   &H00FFFFFF&
  864.          Height          =   825
  865.          Left            =   90
  866.          Top             =   90
  867.          Width           =   1410
  868.       End
  869.       Begin VB.Label CometSpeedLab 
  870.          Alignment       =   2  'Center
  871.          Appearance      =   0  'Flat
  872.          BackColor       =   &H80000005&
  873.          BackStyle       =   0  'Transparent
  874.          Caption         =   "Comet Speed"
  875.          BeginProperty Font 
  876.             Name            =   "Times New Roman"
  877.             Size            =   14.25
  878.             Charset         =   0
  879.             Weight          =   400
  880.             Underline       =   0   'False
  881.             Italic          =   0   'False
  882.             Strikethrough   =   0   'False
  883.          EndProperty
  884.          ForeColor       =   &H0000FFFF&
  885.          Height          =   645
  886.          Left            =   45
  887.          TabIndex        =   26
  888.          Top             =   3240
  889.          Width           =   1455
  890.          WordWrap        =   -1  'True
  891.       End
  892.       Begin VB.Label CommetSpeed 
  893.          Alignment       =   1  'Right Justify
  894.          BackStyle       =   0  'Transparent
  895.          Caption         =   "0"
  896.          BeginProperty Font 
  897.             Name            =   "Times New Roman"
  898.             Size            =   15.75
  899.             Charset         =   0
  900.             Weight          =   400
  901.             Underline       =   0   'False
  902.             Italic          =   0   'False
  903.             Strikethrough   =   0   'False
  904.          EndProperty
  905.          ForeColor       =   &H000000FF&
  906.          Height          =   330
  907.          Left            =   45
  908.          TabIndex        =   25
  909.          Top             =   3870
  910.          Width           =   1005
  911.       End
  912.       Begin VB.Label LYLabel 
  913.          Alignment       =   2  'Center
  914.          BackStyle       =   0  'Transparent
  915.          Caption         =   "LY"
  916.          BeginProperty Font 
  917.             Name            =   "Times New Roman"
  918.             Size            =   15.75
  919.             Charset         =   0
  920.             Weight          =   400
  921.             Underline       =   0   'False
  922.             Italic          =   0   'False
  923.             Strikethrough   =   0   'False
  924.          EndProperty
  925.          ForeColor       =   &H00FFFF00&
  926.          Height          =   330
  927.          Left            =   1080
  928.          TabIndex        =   24
  929.          Top             =   3870
  930.          Width           =   375
  931.       End
  932.       Begin VB.Shape Shape2 
  933.          BorderColor     =   &H00FF80FF&
  934.          Height          =   960
  935.          Left            =   90
  936.          Top             =   3240
  937.          Width           =   1410
  938.       End
  939.       Begin VB.Image Life 
  940.          Height          =   375
  941.          Index           =   2
  942.          Left            =   630
  943.          Top             =   2610
  944.          Width           =   375
  945.       End
  946.    End
  947.    Begin VB.PictureBox Area 
  948.       Appearance      =   0  'Flat
  949.       BackColor       =   &H00C0FFFF&
  950.       BorderStyle     =   0  'None
  951.       DrawWidth       =   2
  952.       BeginProperty Font 
  953.          Name            =   "MS Sans Serif"
  954.          Size            =   8.25
  955.          Charset         =   0
  956.          Weight          =   400
  957.          Underline       =   0   'False
  958.          Italic          =   0   'False
  959.          Strikethrough   =   0   'False
  960.       EndProperty
  961.       ForeColor       =   &H000000FF&
  962.       Height          =   9075
  963.       Left            =   0
  964.       MouseIcon       =   "MainFrm.frx":09BA
  965.       MousePointer    =   99  'Custom
  966.       ScaleHeight     =   9075
  967.       ScaleWidth      =   10320
  968.       TabIndex        =   0
  969.       Top             =   0
  970.       Visible         =   0   'False
  971.       Width           =   10320
  972.       Begin VB.PictureBox RPad 
  973.          Appearance      =   0  'Flat
  974.          AutoSize        =   -1  'True
  975.          BackColor       =   &H00000000&
  976.          BorderStyle     =   0  'None
  977.          BeginProperty Font 
  978.             Name            =   "MS Sans Serif"
  979.             Size            =   8.25
  980.             Charset         =   0
  981.             Weight          =   400
  982.             Underline       =   0   'False
  983.             Italic          =   0   'False
  984.             Strikethrough   =   0   'False
  985.          EndProperty
  986.          ForeColor       =   &H80000008&
  987.          Height          =   2085
  988.          Left            =   9990
  989.          ScaleHeight     =   2085
  990.          ScaleWidth      =   330
  991.          TabIndex        =   5
  992.          Tag             =   "Side"
  993.          Top             =   45
  994.          Width           =   330
  995.       End
  996.       Begin VB.PictureBox LPad 
  997.          Appearance      =   0  'Flat
  998.          AutoSize        =   -1  'True
  999.          BackColor       =   &H00000000&
  1000.          BorderStyle     =   0  'None
  1001.          BeginProperty Font 
  1002.             Name            =   "MS Sans Serif"
  1003.             Size            =   8.25
  1004.             Charset         =   0
  1005.             Weight          =   400
  1006.             Underline       =   0   'False
  1007.             Italic          =   0   'False
  1008.             Strikethrough   =   0   'False
  1009.          EndProperty
  1010.          ForeColor       =   &H80000008&
  1011.          Height          =   2085
  1012.          Left            =   0
  1013.          ScaleHeight     =   2085
  1014.          ScaleWidth      =   330
  1015.          TabIndex        =   4
  1016.          Tag             =   "Side"
  1017.          Top             =   0
  1018.          Width           =   330
  1019.       End
  1020.       Begin VB.PictureBox BPad 
  1021.          Appearance      =   0  'Flat
  1022.          AutoSize        =   -1  'True
  1023.          BackColor       =   &H00000000&
  1024.          BorderStyle     =   0  'None
  1025.          BeginProperty Font 
  1026.             Name            =   "MS Sans Serif"
  1027.             Size            =   8.25
  1028.             Charset         =   0
  1029.             Weight          =   400
  1030.             Underline       =   0   'False
  1031.             Italic          =   0   'False
  1032.             Strikethrough   =   0   'False
  1033.          EndProperty
  1034.          ForeColor       =   &H80000008&
  1035.          Height          =   330
  1036.          Left            =   0
  1037.          ScaleHeight     =   330
  1038.          ScaleWidth      =   2085
  1039.          TabIndex        =   3
  1040.          Tag             =   "Top"
  1041.          Top             =   8685
  1042.          Width           =   2085
  1043.       End
  1044.       Begin VB.PictureBox TPad 
  1045.          Appearance      =   0  'Flat
  1046.          AutoSize        =   -1  'True
  1047.          BackColor       =   &H00000000&
  1048.          BorderStyle     =   0  'None
  1049.          BeginProperty Font 
  1050.             Name            =   "MS Sans Serif"
  1051.             Size            =   8.25
  1052.             Charset         =   0
  1053.             Weight          =   400
  1054.             Underline       =   0   'False
  1055.             Italic          =   0   'False
  1056.             Strikethrough   =   0   'False
  1057.          EndProperty
  1058.          ForeColor       =   &H80000008&
  1059.          Height          =   330
  1060.          Left            =   0
  1061.          ScaleHeight     =   330
  1062.          ScaleWidth      =   2085
  1063.          TabIndex        =   2
  1064.          Tag             =   "Top"
  1065.          Top             =   0
  1066.          Width           =   2085
  1067.       End
  1068.       Begin PicClip.PictureClip AniBall 
  1069.          Left            =   2160
  1070.          Top             =   2205
  1071.          _ExtentX        =   2646
  1072.          _ExtentY        =   1323
  1073.          _Version        =   393216
  1074.          Rows            =   2
  1075.          Cols            =   4
  1076.       End
  1077.       Begin PicClip.PictureClip BallBlow 
  1078.          Left            =   2025
  1079.          Top             =   3375
  1080.          _ExtentX        =   5292
  1081.          _ExtentY        =   5080
  1082.          _Version        =   393216
  1083.          Rows            =   4
  1084.          Cols            =   4
  1085.       End
  1086.       Begin VB.PictureBox Ball 
  1087.          Appearance      =   0  'Flat
  1088.          AutoRedraw      =   -1  'True
  1089.          AutoSize        =   -1  'True
  1090.          BackColor       =   &H00000000&
  1091.          BorderStyle     =   0  'None
  1092.          DrawStyle       =   1  'Dash
  1093.          Enabled         =   0   'False
  1094.          FillColor       =   &H0000FFFF&
  1095.          BeginProperty Font 
  1096.             Name            =   "MS Sans Serif"
  1097.             Size            =   8.25
  1098.             Charset         =   0
  1099.             Weight          =   400
  1100.             Underline       =   0   'False
  1101.             Italic          =   0   'False
  1102.             Strikethrough   =   0   'False
  1103.          EndProperty
  1104.          ForeColor       =   &H80000008&
  1105.          Height          =   375
  1106.          Left            =   5085
  1107.          ScaleHeight     =   375
  1108.          ScaleWidth      =   375
  1109.          TabIndex        =   1
  1110.          Top             =   4455
  1111.          Width           =   375
  1112.       End
  1113.       Begin VB.Label GameStory 
  1114.          Alignment       =   2  'Center
  1115.          AutoSize        =   -1  'True
  1116.          BackStyle       =   0  'Transparent
  1117.          BeginProperty Font 
  1118.             Name            =   "Times New Roman"
  1119.             Size            =   15.75
  1120.             Charset         =   0
  1121.             Weight          =   400
  1122.             Underline       =   0   'False
  1123.             Italic          =   0   'False
  1124.             Strikethrough   =   0   'False
  1125.          EndProperty
  1126.          ForeColor       =   &H0000FF00&
  1127.          Height          =   2085
  1128.          Left            =   2895
  1129.          TabIndex        =   14
  1130.          Top             =   3555
  1131.          Width           =   5970
  1132.          WordWrap        =   -1  'True
  1133.       End
  1134.       Begin VB.Shape Limit 
  1135.          BackColor       =   &H00000000&
  1136.          BorderColor     =   &H0000FF00&
  1137.          Height          =   8370
  1138.          Left            =   360
  1139.          Top             =   315
  1140.          Visible         =   0   'False
  1141.          Width           =   9675
  1142.       End
  1143.    End
  1144.    Begin VB.PictureBox KillEarth 
  1145.       AutoSize        =   -1  'True
  1146.       BackColor       =   &H008080FF&
  1147.       BorderStyle     =   0  'None
  1148.       BeginProperty Font 
  1149.          Name            =   "MS Sans Serif"
  1150.          Size            =   8.25
  1151.          Charset         =   0
  1152.          Weight          =   400
  1153.          Underline       =   0   'False
  1154.          Italic          =   0   'False
  1155.          Strikethrough   =   0   'False
  1156.       EndProperty
  1157.       Height          =   8970
  1158.       Left            =   0
  1159.       ScaleHeight     =   8970
  1160.       ScaleWidth      =   7980
  1161.       TabIndex        =   15
  1162.       Top             =   0
  1163.       Width           =   7980
  1164.       Begin QuadBall_Story.EarthBlow1 BlowUpEarth 
  1165.          Height          =   1380
  1166.          Left            =   450
  1167.          TabIndex        =   16
  1168.          Top             =   810
  1169.          Width           =   1530
  1170.          _ExtentX        =   2699
  1171.          _ExtentY        =   2434
  1172.       End
  1173.       Begin VB.PictureBox KillBall 
  1174.          Appearance      =   0  'Flat
  1175.          AutoRedraw      =   -1  'True
  1176.          AutoSize        =   -1  'True
  1177.          BackColor       =   &H00000000&
  1178.          BorderStyle     =   0  'None
  1179.          DrawStyle       =   1  'Dash
  1180.          Enabled         =   0   'False
  1181.          FillColor       =   &H0000FFFF&
  1182.          BeginProperty Font 
  1183.             Name            =   "MS Sans Serif"
  1184.             Size            =   8.25
  1185.             Charset         =   0
  1186.             Weight          =   400
  1187.             Underline       =   0   'False
  1188.             Italic          =   0   'False
  1189.             Strikethrough   =   0   'False
  1190.          EndProperty
  1191.          ForeColor       =   &H80000008&
  1192.          Height          =   375
  1193.          Left            =   0
  1194.          ScaleHeight     =   375
  1195.          ScaleWidth      =   375
  1196.          TabIndex        =   17
  1197.          Top             =   0
  1198.          Width           =   375
  1199.       End
  1200.       Begin VB.Label GameStory2 
  1201.          Alignment       =   2  'Center
  1202.          AutoSize        =   -1  'True
  1203.          BackStyle       =   0  'Transparent
  1204.          BeginProperty Font 
  1205.             Name            =   "Times New Roman"
  1206.             Size            =   15.75
  1207.             Charset         =   0
  1208.             Weight          =   400
  1209.             Underline       =   0   'False
  1210.             Italic          =   0   'False
  1211.             Strikethrough   =   0   'False
  1212.          EndProperty
  1213.          ForeColor       =   &H0000FF00&
  1214.          Height          =   2085
  1215.          Left            =   3150
  1216.          TabIndex        =   19
  1217.          Top             =   3375
  1218.          Width           =   5970
  1219.          WordWrap        =   -1  'True
  1220.       End
  1221.    End
  1222. Attribute VB_Name = "MainSmall"
  1223. Attribute VB_GlobalNameSpace = False
  1224. Attribute VB_Creatable = False
  1225. Attribute VB_PredeclaredId = True
  1226. Attribute VB_Exposed = False
  1227. ' This Form Loads Up if the Display is 800x600 '
  1228. '______________________________________________'
  1229. ' There is info on what each GENERAL sub does above it '
  1230. '______________________________________________________'
  1231. Dim ExitBounce As Boolean
  1232. Dim StartTime As Date
  1233. Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
  1234.  Reset_Click
  1235.  Call StopSounds(True, True)
  1236.  ExitBounce = True
  1237.  Call StopSounds(True, True)
  1238. End Sub
  1239. Private Sub Form_Unload(Cancel As Integer)
  1240.  Call StopSounds(True, True)
  1241. End Sub
  1242. Private Sub GameStory_Change()
  1243. ' centre text
  1244. With GameStory
  1245.  .Left = Int(Me.Width - Info.Width) / 2
  1246.  .Top = Int(Me.Height / 2)
  1247.  .Left = .Left - Int(.Width / 2)
  1248.  .Top = .Top - Int(.Height / 2)
  1249.  .Refresh
  1250. End With
  1251. End Sub
  1252. Private Sub Info_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  1253.  UnHighlight Reset
  1254. End Sub
  1255. Private Sub InfoArea_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  1256.  ' move paddles even if the mouse leaves the "Area" Picturebox
  1257.  X = Int(Area.Width - (BPad.Width / 2))
  1258.  Call Area_MouseMove(Button, Shift, X, Y)
  1259. End Sub
  1260. Private Sub OK_Click()
  1261.  Reset_Click
  1262.  StatBox.Visible = False
  1263. End Sub
  1264. Private Sub OK_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  1265.  Highlight OK
  1266. End Sub
  1267. Private Sub Quit_Click()
  1268.  ExitBounce = True
  1269.  WAVPlay "exit.qbs"
  1270.  Unload Me
  1271. End Sub
  1272. Private Sub Quit2_Click()
  1273.  Call Quit_Click
  1274. End Sub
  1275. ' i think you can work this one out
  1276. Public Sub CentreBall()
  1277.  Ball.Visible = False
  1278.  Ball.Top = Int((Me.Height + Ball.Height) / 2)
  1279.  Ball.Left = Int(Int((Area.Width - Info.Width) / 2) - Int(Ball.Width / 2))
  1280. End Sub
  1281. ' Reset All Variables and reture to start screen'                          '
  1282. '_______________________________________________'
  1283. Private Sub Reset_Click()
  1284.  WAVPlay "exit.qbs"
  1285.  ExitBounce = True
  1286.  ExitBounce = True
  1287.  CentreBall
  1288.  TitleScreen.Visible = True
  1289.  Scroll.StartScroll
  1290.  Area.Visible = False
  1291.  LifeTxt(1).caption = ""
  1292.  LifeTxt(2).caption = ""
  1293.  LifeTxt(3).caption = ""
  1294.  LivesLeft = 3
  1295.  XSpeed = CmdSpeedParam
  1296.  YSpeed = CmdSpeedParam
  1297.  For i = 1 To 3
  1298.   Life(1).Visible = True
  1299.  Next i
  1300.  TimeSoFar = "00:00:00"
  1301.  AimTime = "00:00:00"
  1302.  Score = "0"
  1303. End Sub
  1304. Private Sub Reset_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  1305.  Highlight Reset
  1306. End Sub
  1307. Private Sub Start_Click()
  1308.  WAVPlay "start.qbs"
  1309.  Area.Visible = True
  1310.  Area.Cls
  1311.  TitleScreen.Visible = False
  1312.  Scroll.ExitScroll
  1313.  LoadScore
  1314.  LivesLeft = 3
  1315.  XSpeed = CmdSpeedParam
  1316.  YSpeed = CmdSpeedParam
  1317.   For i = 1 To 3
  1318.    Life(i).Visible = True
  1319.    LifeTxt(i).caption = ""
  1320.   Next i
  1321.  TimeSoFar = "00:00:00"
  1322.  AimTime = "00:00:25"
  1323.  Score = "0"
  1324.  Ball.Visible = False
  1325.  ' display text
  1326.  GameStory = "Your First Mission Is To Save neptune!" & Chr(13) & " Your Target Time is 0.25 Minuets"
  1327.  Delay 1.5
  1328.  GameStory = "Ready"
  1329.  Delay 0.8
  1330.  GameStory = "GO!"
  1331.  Delay 0.6
  1332.  GameStory = ""
  1333.  Ball.Visible = True
  1334.  ExitBounce = False
  1335.  ' start the bounce
  1336.  Bounce
  1337. End Sub
  1338. Private Sub Start2_Click()
  1339.  StoryScreen.Visible = False
  1340.  Call Start_Click
  1341. End Sub
  1342. Private Sub Start_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  1343.  UnHighlight Story
  1344.  UnHighlight TrainingMode
  1345.  UnHighlight Quit
  1346.  Highlight Start
  1347. End Sub
  1348. Private Sub Start2_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  1349.  UnHighlight Quit2
  1350.  Highlight Start2
  1351. End Sub
  1352. Private Sub Quit_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  1353.  UnHighlight Story
  1354.  UnHighlight TrainingMode
  1355.  UnHighlight Start
  1356.  Highlight Quit
  1357. End Sub
  1358. Private Sub Quit2_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  1359.  UnHighlight Start2
  1360.  Highlight Quit2
  1361. End Sub
  1362. ' Show The Game Statistics     '
  1363. '______________________________'
  1364. Private Sub ShowStats()
  1365. TotalScore = Val(Score)
  1366. TopSpeed = FastSpeed
  1367. TotalBounces = NumBounces
  1368.  If LifeTxt(3).caption = "OK" Then
  1369.   SavedPlanets(3).caption = "Neptune: Saved!"
  1370.  Else
  1371.   SavedPlanets(3).caption = "Neptune: Destroyed!"
  1372.  End If
  1373.  If LifeTxt(2).caption = "OK" Then
  1374.   SavedPlanets(2).caption = "Mars: Saved!"
  1375.  Else
  1376.   SavedPlanets(2).caption = "Mars: Destroyed!"
  1377.  End If
  1378.  If LifeTxt(1).caption = "OK" Then
  1379.   SavedPlanets(1).caption = "Earth: Saved!"
  1380.  Else
  1381.   SavedPlanets(1).caption = "Earth: Destroyed!"
  1382.  End If
  1383. StatBox.Visible = True
  1384.  ' check for a new top score
  1385.  If TotalScore > Val(GetKeyValue(HKEY_LOCAL_MACHINE, _
  1386.   "SOFTWARE\arvisehmi\QuadBall", "TopScore")) Then
  1387.   On Error Resume Next
  1388.   InputWindow.Visible = True
  1389.  End If
  1390. End Sub
  1391. Private Sub StatBox_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  1392.  UnHighlight OK
  1393. End Sub
  1394. Private Sub totalbounces_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  1395.  UnHighlight OK
  1396. End Sub
  1397. Private Sub label8_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  1398.  UnHighlight OK
  1399. End Sub
  1400. Private Sub Story_Click()
  1401.  LoadStoryString
  1402.  StoryScreen.Visible = True
  1403. End Sub
  1404. Private Sub Story_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  1405.  UnHighlight Start
  1406.  UnHighlight TrainingMode
  1407.  UnHighlight Quit
  1408.  Highlight Story
  1409. End Sub
  1410. Private Sub StoryLabel_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  1411.  UnHighlight Quit2
  1412.  UnHighlight Start2
  1413. End Sub
  1414. ' updates the played time
  1415. Private Sub TimeKeeper_Timer()
  1416.  Dim TempTime As Date
  1417.  TempTime = Time - StartTime
  1418.  TimeSoFar = TempTime
  1419.  ' check if the aimtime has been reached
  1420.  If TimeSoFar >= AimTime Then SavePlanet
  1421. End Sub
  1422. ' Show The Comet being Destroyed
  1423. '_______________________________'
  1424. Public Sub SavePlanet()
  1425.  LivesLeft = LivesLeft - 1
  1426.  ExitBounce = True
  1427.  WAVLoop "Shoot.qbs"
  1428.  Ball.Visible = True
  1429.  ' draw red lines from the screen corner to the ball
  1430.  For i = 300 To 0 Step -10
  1431.   Area.Line (0, i)-(Ball.Left, Ball.Top), RGB(180, 0, 0)
  1432.   Area.Line (i, 0)-(Ball.Left, Ball.Top), RGB(180, 0, 0)
  1433.   Delay 1E-19
  1434.   Area.Cls
  1435.  Next i
  1436.  ' show a boost in power
  1437.  Area.DrawWidth = 12
  1438.  Area.Line (0, 0)-(Ball.Left, Ball.Top), RGB(180, 0, 0)
  1439.  Area.DrawWidth = 6
  1440.  Area.Line (0, 0)-(Ball.Left, Ball.Top), RGB(255, 0, 0)
  1441.  Area.DrawWidth = 3
  1442.  Area.Line (0, 0)-(Ball.Left, Ball.Top), vbWhite
  1443.  Delay 0.2
  1444.  Area.Cls
  1445.  StopSounds True
  1446.  BlowUpBall
  1447.  Ball.Visible = False
  1448.  CentreBall
  1449.  GameStory = "The Comet Has Been Safely Destroyed!"
  1450.  Sleep 1.6
  1451.  GameStory = ""
  1452.  Select Case LivesLeft
  1453.  ' display text and set next mssions
  1454.  Case 2
  1455.   GameStory = "You've Saved The Planet neptune!"
  1456.   AimTime = "00:00:45"
  1457.   Score = Str(Int(Val(Score) + 5000))
  1458.   Sleep 1.9
  1459.   GameStory = "Your next Mission Is To Save Mars!" & Chr(13) & "The Target Time Is 0.45 Minuets."
  1460.   Sleep 3
  1461.   LifeTxt(3).caption = "OK"
  1462.   ExitBounce = False
  1463.  Case 1
  1464.   GameStory = "You've Saved Mars!!"
  1465.   AimTime = "00:01:30"
  1466.   Score = Str(Int(Val(Score) + 10000))
  1467.   Sleep 1.9
  1468.   GameStory = "Your next Mission Is To Save Earth!" & Chr(13) & "The Target Time Is 1.30 Minuets."
  1469.   Sleep 3
  1470.   LifeTxt(2).caption = "OK"
  1471.   ExitBounce = False
  1472.  Case 0
  1473.   GameStory = "You've Saved The Planet Earth!!!"
  1474.   Score = Str(Int(Val(Score) + 20000))
  1475.   LifeTxt(1).caption = "OK"
  1476.   Sleep 3
  1477.   ExitBounce = True
  1478.   ExitBounce = True
  1479.   ShowStats
  1480.   Exit Sub
  1481.  End Select
  1482.  Ball.Visible = True
  1483.  Area.Refresh
  1484.  GameStory = "Ready"
  1485.  Delay 0.8
  1486.  GameStory = "GO!"
  1487.  Delay 0.6
  1488.  GameStory = ""
  1489.  XSpeed = CmdSpeedParam
  1490.  YSpeed = CmdSpeedParam
  1491.  ' make sure the bouncing has stoped
  1492.  ExitBounce = False
  1493.  ' double check the bouncing has stoped ( some errors may reinstate the initial value)
  1494.  ExitBounce = False
  1495.  Bounce
  1496. End Sub
  1497. Private Sub TitleScreen_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  1498.  ExitBounce = True
  1499.  UnHighlight Story
  1500.  UnHighlight TrainingMode
  1501.  UnHighlight Start
  1502.  UnHighlight Quit
  1503. End Sub
  1504. Public Sub RefreshForm()
  1505.  Me.Show
  1506.  Me.Refresh
  1507.  Area.Refresh
  1508.  TitleScreen.Refresh
  1509.  Info.Refresh
  1510. End Sub
  1511. ' This is called when the user moves the mouse
  1512. Private Sub Area_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  1513.  ' move the paddles
  1514.  If Reset.Tag = "yes" Then UnHighlight Reset
  1515.  TPad.Left = Int(X - (TPad.Width / 2))
  1516.  BPad.Left = TPad.Left
  1517.  RPad.Top = Int(Y - (RPad.Height / 2))
  1518.  LPad.Top = RPad.Top
  1519. End Sub
  1520. ' Loads All Things and sets variables to defaults
  1521. Sub Form_Load()
  1522.  Load LoadUp
  1523.  LoadUp.Visible = True
  1524.  ExitBounce = True
  1525.  Area.Visible = False
  1526.  LivesLeft = 3
  1527.  XSpeed = CmdSpeedParam
  1528.  YSpeed = CmdSpeedParam
  1529.  LoadScore
  1530.  LoadTitlePics
  1531.  LoadGamePics
  1532.  LoadScrollText
  1533.  Unload LoadUp
  1534.  Call SetWindowRgn(KillBall.hWnd, CreateEllipticRgn(0, 0, Ball.Width / Screen.TwipsPerPixelX, Ball.Height / Screen.TwipsPerPixelY), True)
  1535.  Show
  1536.  Scroll.StartScroll
  1537.  RefreshForm
  1538. End Sub
  1539. 'loads the scrolling text
  1540. Public Sub LoadScrollText()
  1541. LoadPercent = LoadPercent + 1
  1542. LoadUp.caption = LoadPercent
  1543. LoadUp.CurrLoad.caption = "Loading Text..."
  1544. LoadUp.Refresh
  1545. Sleep (0.3)
  1546. Scroll.Font.Name = Terminal
  1547. Scroll.Font.Size = 14
  1548. Scroll.Font.Bold = True
  1549. Scroll.caption = "< Q U A D - B A L L > - < P r o g r a m m i n g ,   G r a p h i c s ,   S o u n d   E f f e c t s   B y   A r v i n d e r   S e h m i > - < A r v i n d e r @ S e h m i . C o . U k > - "
  1550. End Sub
  1551. 'Loads the game pictures
  1552. Private Sub LoadGamePics()
  1553.  If GamePicsLoaded = True Then Exit Sub
  1554.  Call LoadPic(Area, "Space.Img")
  1555.  Call LoadPic(Info, "QBallI.Img")
  1556.  Call LoadPic(AniBall, "Ball.Img")
  1557.  Call LoadPic(TPad, "TBPad.Img")
  1558.  Call LoadPic(BPad, "TBPad.Img")
  1559.  Call LoadPic(LPad, "LRPad.Img")
  1560.  Call LoadPic(RPad, "LRPad.Img")
  1561.  Call LoadPic(BallBlow, "BallBlow.Img")
  1562.  Call LoadPic(Life(1), "Planet1.Img")
  1563.  Call LoadPic(Life(2), "Planet2.Img")
  1564.  Call LoadPic(Life(3), "Planet3.Img")
  1565.  KillEarth.Picture = Area.Picture
  1566.  Call LoadAniPic(Ball, AniBall, 0)
  1567.  Call LoadAniPic(KillBall, AniBall, "0")
  1568.  GamePicsLoaded = True
  1569. End Sub
  1570. ' Loads the title screen pictures
  1571. Private Sub LoadTitlePics()
  1572.  If TitlePicsLoaded = True Then Exit Sub
  1573.  Call LoadPic(StoryScreen, "QBallS.Img")
  1574.  Call LoadPic(TitleScreen, "QBallT.Img")
  1575.  Call LoadPic(StatBox, "QBallS.Img")
  1576.  UnHighlight Start
  1577.  UnHighlight Quit
  1578.  UnHighlight Story
  1579.  TitlePicsLoaded = True
  1580. End Sub
  1581. ' loads the stoy string
  1582. Sub LoadStoryString()
  1583. Dim NewLine As String
  1584. NewLine = Chr(13) & Chr(13)
  1585. StoryLabel.FontBold = True
  1586. StoryLabel.caption = NewLine & "The Year is 2500. " & _
  1587.  "The Human Civilisation Has Expanded And now;" & _
  1588.  " Earth, Mars And neptune Are All Inhabited by Our" & _
  1589.  " Species." & NewLine & "The Colonists On The Planet neptune Have Discovered" & _
  1590.  " Fifteen Large Comets Heading Towards Our Solar System. Three Of These are" & _
  1591.  " Heading For The Civilised Planets, These Planets" & _
  1592.  " Will be Destroyed If The Comets Are not Destroyed First." & NewLine & _
  1593.  " You Have Been Assigned To Take Control Of A new Protection" & _
  1594.  " System. You Will Have Keep The Comets In Their Current Area Location (One At a Time)" & _
  1595.  " So That There Will Be Enough Time To Destroy Each Of The Dangerous Three Saftly." & _
  1596.  NewLine & "The Human Civilisation Is Depending On YOU!"
  1597. End Sub
  1598. ' Spin The Ball ( animate it )
  1599. Public Sub SpinBall(Direction)
  1600. Static BallCell As Single
  1601.  Select Case Direction
  1602.   Case Clock
  1603.    BallCell = BallCell + 0.5
  1604.    If Int(BallCell) = 8 Then BallCell = 0
  1605.    Call LoadAniPic(Ball, AniBall, Int(BallCell))
  1606.   Case AntiClock
  1607.    BallCell = BallCell - 0.5
  1608.    If Int(BallCell) = -1 Then BallCell = 7
  1609.    Call LoadAniPic(Ball, AniBall, Int(BallCell))
  1610.  End Select
  1611. End Sub
  1612. ' This Is The Most Important Sub.    '
  1613. ' It Tells The Ball How To Bounce,   '
  1614. ' To Increase In Speed, To Add To    '
  1615. ' The Score And To Test If The Ball  '
  1616. ' Has Been Missed By The Player      '
  1617. '____________________________________'
  1618. Public Sub Bounce()
  1619. Static BallXCent As Integer, BallYCent As Integer
  1620. Static Bounces As Integer
  1621. GetSpeed
  1622. If ExitBounce = True Then GoTo Nd2:
  1623. Ball.Visible = True
  1624. Call SetWindowRgn(Ball.hWnd, CreateEllipticRgn(0, 0, (Ball.Width / Screen.TwipsPerPixelX), (Ball.Height / Screen.TwipsPerPixelY)), True)
  1625. StartTime = Time
  1626. DoEvents
  1627. Ball.Left = Ball.Left + XSpeed
  1628. Ball.Top = Ball.Top + YSpeed
  1629. BallXCent = Int(Ball.Left + (Ball.Width / 2))
  1630. BallYCent = Int(Ball.Top + (Ball.Height / 2))
  1631.  If Ball.Top <= Limit.Top And YSpeed < 0 Then
  1632.   TPadLeft = TPad.Left
  1633.   TPadRight = Int(TPad.Left + TPad.Width)
  1634.   If BallXCent > TPadLeft And BallXCent < TPadRight Then
  1635.    Call WAVPlay("Hit.qbs")
  1636.    YSpeed = -YSpeed
  1637.    AddScore
  1638.    GoTo nd:
  1639.   Else
  1640.    Die
  1641.   End If
  1642.  ElseIf Ball.Left <= Limit.Left And XSpeed < 0 Then
  1643.   LPadTop = LPad.Top
  1644.   LPadBottom = Int(LPad.Top + LPad.Height)
  1645.   If BallYCent > LPadTop And BallYCent < LPadBottom Then
  1646.    Call WAVPlay("Hit.qbs")
  1647.    XSpeed = -XSpeed
  1648.    AddScore
  1649.    GoTo nd:
  1650.   Else
  1651.    Die
  1652.   End If
  1653.  ElseIf Int(Ball.Left + Ball.Width) >= Int(Limit.Left + Limit.Width) And XSpeed > 0 Then
  1654.   RPadTop = RPad.Top
  1655.   RPadBottom = Int(RPad.Top + RPad.Height)
  1656.   If BallYCent > RPadTop And BallYCent < RPadBottom Then
  1657.    WAVPlay ("Hit.qbs")
  1658.    XSpeed = -XSpeed
  1659.    AddScore
  1660.    GoTo nd:
  1661.   Else
  1662.    Die
  1663.   End If
  1664.  ElseIf Int(Ball.Top + Ball.Height) >= Int(Limit.Top + Limit.Height) And YSpeed > 0 Then
  1665.   BPadLeft = BPad.Left
  1666.   BPadRight = Int(BPad.Left + BPad.Width)
  1667.   If BallXCent > BPadLeft And BallXCent < BPadRight Then
  1668.    Call WAVPlay("Hit.qbs")
  1669.    YSpeed = -YSpeed
  1670.    AddScore
  1671.    GoTo nd:
  1672.   Else
  1673.    Die
  1674.   End If
  1675.  End If
  1676. If Bounces = 15 Then
  1677.  If XSpeed > 0 Then SpinBall Clock Else SpinBall AntiClock
  1678.  Bounces = 0
  1679.  Dim TempTime As Date
  1680.  TempTime = Time - StartTime
  1681.  TimeSoFar = TempTime
  1682.  If TimeSoFar = AimTime Then SavePlanet
  1683. End If
  1684. Bounces = Bounces + 1
  1685. Loop Until ExitBounce = True
  1686. StopSounds False, True
  1687. Ball.Visible = False
  1688. TimeSoFar = "00:00:00"
  1689. End Sub
  1690. ' Called When The Player Missed The Ball
  1691. Public Sub Die()
  1692.  ExitBounce = True
  1693.  ' deduct a life
  1694.  LivesLeft = LivesLeft - 1
  1695. If LivesLeft > 0 Then BlowUpBall
  1696.  Select Case LivesLeft
  1697.   Case 2
  1698.    GameStory = "The Planet neptune Has Been Destroyed!" & Chr(13) & "Four Billion People Dead!"
  1699.    Area.Refresh
  1700.    Sleep 2.5
  1701.    GameStory = "Your next Mission Is To Save Mars!" & Chr(13) & "The Target Time Is 0.45 Minuets."
  1702.    Sleep 3
  1703.    GameStory = "Ready"
  1704.    Delay 0.8
  1705.    GameStory = "GO!"
  1706.    Delay 0.6
  1707.    GameStory = ""
  1708.    AimTime = "00:00:45"
  1709.    LifeTxt(3).caption = "X"
  1710.   Case 1
  1711.    GameStory = "The Planet Mars Has Been Destroyed!" & Chr(13) & "Six Billion People Dead!"
  1712.    Area.Refresh
  1713.    Sleep 2.5
  1714.    GameStory = "Your next Mission Is To Save Earth!" & Chr(13) & "The Target Time Is 1.30 Minuets."
  1715.    Sleep 3
  1716.    GameStory = "Ready"
  1717.    Delay 0.8
  1718.    GameStory = "GO!"
  1719.    Delay 0.6
  1720.    GameStory = ""
  1721.    AimTime = "00:01:35"
  1722.    LifeTxt(2).caption = "X"
  1723.   Case 0
  1724.    LifeTxt(1).caption = "X"
  1725.    ShowDie
  1726.    Reset_Click
  1727.    Exit Sub
  1728.  End Select
  1729.  CentreBall
  1730.  YSpeed = CmdSpeedParam
  1731.  XSpeed = CmdSpeedParam
  1732.  GetSpeed
  1733.  ExitBounce = False
  1734.  Bounce
  1735. End Sub
  1736. ' Animate The Earth Dissolving
  1737. Sub ShowDie()
  1738. 'centre earth
  1739.  KillBall.Top = 200
  1740.  KillBall.Left = 0
  1741.  BlowUpEarth.Left = Int((Me.Width - BlowUpEarth.Width) / 2)
  1742.  BlowUpEarth.Top = BlowUpEarth.Left 'Int((Me.Height - BlowUpEarth.Height) / 2)
  1743.  BlowUpEarth.Animate 0, 0, 0
  1744.  BlowUpEarth.Visible = True
  1745.  KillEarth.ZOrder 0
  1746.  BlowUpEarth.ZOrder 0
  1747. 'hide all pic boxes
  1748.  Area.Visible = False
  1749.  TitleScreen.Visible = False
  1750.  Scroll.ExitScroll
  1751.  StoryScreen.Visible = False
  1752. ' set earth round
  1753. ' kill earth
  1754.   BlowUpEarth.SetShape True, False
  1755.  Dim Pos As Integer
  1756.  Dim Moves As Integer
  1757.  Static BallCell As Single
  1758.  KillBall.Visible = True
  1759.  KillEarth.Visible = True
  1760.  With KillBall
  1761.   For Pos = 0 To (BlowUpEarth.Left - (.Width / 2)) + 250 Step 24
  1762.    .Top = .Top + 24
  1763.    .Left = .Top - 100
  1764.    KillEarth.Refresh
  1765.    BallCell = BallCell + 0.5
  1766.    If Int(BallCell) = 8 Then BallCell = 0
  1767.    Call LoadAniPic(KillBall, AniBall, Int(BallCell))
  1768.   Next
  1769.   BlowUpEarth.SetShape False, True
  1770.   Call WAVLoop("blowup.qbs")
  1771.   BlowUpEarth.Animate
  1772.   Call StopSounds(True, False)
  1773.  End With
  1774. KillBall.Visible = False
  1775. GameStory2 = "The Planet Earth Has Been Destroyed!" & Chr(13) & "Eight Billion People Dead!"
  1776. 'Area.Refresh
  1777. Sleep 2.5
  1778. GameStory2 = ""
  1779. BlowUpEarth.Visible = False
  1780. 'show all picboxes
  1781.  KillEarth.Visible = False
  1782.  Area.Visible = True
  1783.  StoryScreen.Visible = False
  1784.  TitleScreen.Visible = True
  1785.  ShowStats
  1786. End Sub
  1787. ' Animate The Ball Exploding
  1788. Public Sub BlowUpBall()
  1789.  Ball.Visible = True
  1790.  Dim i As Integer
  1791.  WAVPlay "blowup.qbs"
  1792.  Area.Cls
  1793.  Area.Refresh
  1794.  For i = 0 To (BallBlow.Rows * BallBlow.Cols) - 1
  1795.   Call LoadAniPic(Ball, BallBlow, i)
  1796.   Ball.Refresh
  1797.   Call Sleep(0.1)
  1798.  Next i
  1799.  CentreBall
  1800.  Call LoadAniPic(Ball, AniBall, 0)
  1801. End Sub
  1802. ' Adds To The Toltal Score
  1803. Sub AddScore()
  1804.  On Error GoTo ScoreTooHigh
  1805.  Call IncSpeed
  1806.  Call GetSpeed
  1807.  Dim AveSpeed As Integer
  1808.  AveSpeed = Int(XSpeed + YSpeed) / 2
  1809.  If AveSpeed < 0 Then AveSpeed = -AveSpeed
  1810.  Score = CLng(Val(Score) + CLng(5 * AveSpeed))
  1811.  If Val(Score.caption) > 99999 Then Score.FontSize = 16
  1812.  NumBounces = NumBounces + 1
  1813.  Exit Sub
  1814. ScoreTooHigh:
  1815.  Score.FontSize = 14
  1816.  Score = "Maxed Out"
  1817. End Sub
  1818. 'Gets The Ball Speed
  1819. Public Sub GetSpeed()
  1820.  Dim TempX, TempY
  1821.  TempX = XSpeed
  1822.  TempY = YSpeed
  1823.  If TempX < 0 Then TempX = -TempX
  1824.  If TempY < 0 Then TempY = -TempY
  1825.  CommetSpeed = Val(Int((TempX + TempY) / 2))
  1826.  If Val(CommetSpeed) > FastSpeed Then FastSpeed = Val(CommetSpeed)
  1827. End Sub
  1828. Private Sub TrainingMode_Click()
  1829.  On Error GoTo a:
  1830.  ThisDir
  1831.  Shell "QuadBall_Training.Exe " & Trim(Str(CmdSpeedParam)), vbNormalFocus
  1832.  Reset_Click
  1833.  Unload Me
  1834.  MsgBox "Cannot Find QuadBall_Training.Exe," & Chr(13) & "Please Re-install This Game To Fix The Problem." & Chr(13) & _
  1835.         "If You Can Find QuadBall_Training.exe On Your PC," & Chr(13) & "Please Place It In The Directory:" & Chr(13) & _
  1836.         App.Path, vbCritical, "Error"
  1837. End Sub
  1838. Private Sub TrainingMode_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  1839.  UnHighlight Start
  1840.  Highlight TrainingMode
  1841.  UnHighlight Quit
  1842.  UnHighlight Story
  1843. End Sub
  1844.